package cn.stylefeng.guns.sys.modular.metadataFieldsDetail.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 元数据详情表
 * </p>
 *
 * @author author
 * @since 2020-11-17
 */
@TableName("data_metadata_detail")
public class MetadataDetail implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 元数据详情id
     */
      @TableId(value = "metadata_detail_id", type = IdType.AUTO)
    private Integer metadataDetailId;

    /**
     * 关联metadata表
     */
    @TableField("metadata_id")
    private Integer metadataId;

    /**
     * 字段英文名
     */
    @TableField("metadata_detail_us_name")
    private String metadataDetailUsName;

    /**
     * 字段中文名
     */
    @TableField("metadata_detail_cn_name")
    private String metadataDetailCnName;

    /**
     * 数据类型
     */
    @TableField("metadata_detail_data_type")
    private String metadataDetailDataType;

    /**
     * 数据长度
     */
    @TableField("metadata_detail_data_length")
    private Integer metadataDetailDataLength;

    /**
     * 是否必填;1代表必填；2代表非必填
     */
    @TableField("metadata_detail_is_required")
    private Integer metadataDetailIsRequired;

    /**
     * 填写格式
     */
    @TableField("metadata_detail_format")
    private String metadataDetailFormat;

    /**
     * 是否删除;0代表删除；1代表可用
     */
    @TableField("is_delete")
    private Integer isDelete;


    public Integer getMetadataDetailId() {
        return metadataDetailId;
    }

    public void setMetadataDetailId(Integer metadataDetailId) {
        this.metadataDetailId = metadataDetailId;
    }

    public Integer getMetadataId() {
        return metadataId;
    }

    public void setMetadataId(Integer metadataId) {
        this.metadataId = metadataId;
    }

    public String getMetadataDetailUsName() {
        return metadataDetailUsName;
    }

    public void setMetadataDetailUsName(String metadataDetailUsName) {
        this.metadataDetailUsName = metadataDetailUsName;
    }

    public String getMetadataDetailCnName() {
        return metadataDetailCnName;
    }

    public void setMetadataDetailCnName(String metadataDetailCnName) {
        this.metadataDetailCnName = metadataDetailCnName;
    }

    public String getMetadataDetailDataType() {
        return metadataDetailDataType;
    }

    public void setMetadataDetailDataType(String metadataDetailDataType) {
        this.metadataDetailDataType = metadataDetailDataType;
    }

    public Integer getMetadataDetailDataLength() {
        return metadataDetailDataLength;
    }

    public void setMetadataDetailDataLength(Integer metadataDetailDataLength) {
        this.metadataDetailDataLength = metadataDetailDataLength;
    }

    public Integer getMetadataDetailIsRequired() {
        return metadataDetailIsRequired;
    }

    public void setMetadataDetailIsRequired(Integer metadataDetailIsRequired) {
        this.metadataDetailIsRequired = metadataDetailIsRequired;
    }

    public String getMetadataDetailFormat() {
        return metadataDetailFormat;
    }

    public void setMetadataDetailFormat(String metadataDetailFormat) {
        this.metadataDetailFormat = metadataDetailFormat;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "MetadataDetail{" +
        "metadataDetailId=" + metadataDetailId +
        ", metadataId=" + metadataId +
        ", metadataDetailUsName=" + metadataDetailUsName +
        ", metadataDetailCnName=" + metadataDetailCnName +
        ", metadataDetailDataType=" + metadataDetailDataType +
        ", metadataDetailDataLength=" + metadataDetailDataLength +
        ", metadataDetailIsRequired=" + metadataDetailIsRequired +
        ", metadataDetailFormat=" + metadataDetailFormat +
        ", isDelete=" + isDelete +
        "}";
    }
}
